package com.t235.gc.device.controller;

import com.t235.gc.AjaxResult;
import com.t235.gc.device.service.VenuesService;
import com.t235.gc.entity.Venues;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/venues")
public class VenuesController {

    @Autowired
    private VenuesService venuesService;

    @GetMapping("/admin/getBackVenuesList")
    public AjaxResult getBackVenuesList(Venues venues){
        return AjaxResult.success(venuesService.getBackVenuesList(venues));
    }


}
